package com.paypal.android.b;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.StateSet;
import android.view.View;
import android.view.View.OnFocusChangeListener;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;

public class b extends Button
  implements View.OnFocusChangeListener
{
  private int a = 0;
  private Drawable[] b;

  public b(Context paramContext)
  {
    super(paramContext);
    setOnFocusChangeListener(this);
    setLayoutParams(new ViewGroup.LayoutParams(-2, -2));
  }

  public final int a()
  {
    return this.a;
  }

  public final void a(int paramInt)
  {
    if (this.a == 2);
    Drawable localDrawable;
    do
    {
      do
      {
        return;
        if ((paramInt < 0) || (paramInt >= 3))
          throw new IllegalArgumentException("State " + paramInt + " is outside the acceptable range 0-" + 2);
        this.a = paramInt;
      }
      while (this.b == null);
      localDrawable = this.b[this.a];
    }
    while (localDrawable == null);
    setBackgroundColor(0);
    setBackgroundDrawable(localDrawable);
  }

  public final void a(int paramInt, Drawable paramDrawable)
  {
    if ((paramInt < 0) || (paramInt >= 3))
      throw new IllegalArgumentException("State " + paramInt + " is outside the acceptable range 0-" + 2);
    if (this.b == null)
      this.b = new Drawable[3];
    this.b[paramInt] = paramDrawable;
    if ((paramInt == this.a) && (paramDrawable != null))
      setBackgroundDrawable(paramDrawable);
  }

  protected void drawableStateChanged()
  {
    super.drawableStateChanged();
    int[] arrayOfInt = getDrawableState();
    if (!StateSet.stateSetMatches(new int[] { 16842919 }, arrayOfInt))
    {
      if (!StateSet.stateSetMatches(new int[] { 16842908 }, arrayOfInt));
    }
    else
    {
      a(1);
      return;
    }
    a(0);
  }

  public void onFocusChange(View paramView, boolean paramBoolean)
  {
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.paypal.android.b.b
 * JD-Core Version:    0.6.2
 */